package com.ykht.proj.coupon.vo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@ToString
public class SearchResp {
	@ApiModelProperty("品牌名")
	private String brandName;
	@ApiModelProperty("品牌id")
	private String brandId;
	@ApiModelProperty("0显示1不显示")
	private Integer flag;
	@ApiModelProperty(value="第一个门店距离")
	private Long distance4First;
	@ApiModelProperty(value="第一个门店创建时间")
	private LocalDateTime createTime4First;
	@ApiModelProperty("门店数组")
	private List<SimpleShop> shopList = new ArrayList<>();

	@Data
	@ToString
	@Api(value = "门店", tags = "门店")
	public static class SimpleShop{
		@ApiModelProperty(value="门店id")
		private Long id;
		@ApiModelProperty(value="店铺名称")
		private String name;
		@ApiModelProperty(value="店铺地址")
		private String address;
		@ApiModelProperty(value="距离")
		private Long distance;
		@ApiModelProperty(value="创建时间")
		private LocalDateTime createTime;

	}


}
